/**
 * 
 */
package qy.jalgotrade.broker.slippage;

import qy.jalgotrade.bar.Bar;
import qy.jalgotrade.broker.Order;

/**
 * A no slippage model.
 * 
 * @author c-geo
 *
 */
public class NoSlippage extends SlippageModel {

	/**
	 * 
	 */
	public NoSlippage() {

	}

	/* (non-Javadoc)
	 * @see qy.jalgotrade.broker.slippage.SlippageModel#calculatePrice(qy.jalgotrade.broker.Order, double, double, qy.jalgotrade.bar.Bar, double)
	 */
	@Override
	public double calculatePrice(Order order, double price, double quantity, Bar bar, double volumeUsed) {

		return price;
	}
}
